<div class="tales_stats_menu">
    <ui>
        <li class="tales_of_deonia"><?php echo __(LANG_TALES_OF_DEONIA)?></li>
    </ui>
</div>

<div class="tales_div_search_main">
    <div><?php echo $this->Form->create('search_user');?></div>
    <div class="input_div">
        <?php echo $this->Form->input('nickname', array(
            'rule' => 'notEmpty',
            'label' => false,
            'type' => 'text',
            'value' => empty($search_info['nickname'])?'':$search_info['nickname'],
        ));?>
    </div>
    <div class="search_div_button">
        <?php echo $this->Form->end(__(LANG_SEARCH));?>
    </div>
    <div class="search_table">
        <table>
            <tr>
                <th style="width: 80px"><?php echo __(LANG_NUM)?></th>
                <th style="width: 400px"><?php echo __(LANG_NICKNAME)?></th>
                <th style="width: 100px"><?php echo __(LANG_GEM)?></th>
                <th style="width: 100px"><?php echo __(LANG_BLOCK)?></th>
                <th style="width: 200px"><?php echo __(LANG_LAST_LOGIN)?></th>
            </tr>
            <?php if(!empty($user_list)) {?>
                <?php $num = ''; $count = count($user_list);?>
                <?php foreach($user_list as $num => $value) {?>
                    <tr>
                        <td class="user_link">
                            <?php echo $this->Html->link($count--, array('action' => 'user_select', 'id' => $value['tbl_account']['a2x_id'], 'search_value' => $search_info['nickname']));?>
                        </td>
                        <td class="user_link">
                            <?php echo $this->Html->link($value['tbl_account']['nickname'], array('action' => 'user_select', 'id' => $value['tbl_account']['a2x_id'], 'search_value' => $search_info['nickname']));?>
                        </td>
                        <td class="user_link">
                            <?php echo $this->Html->link($value['tbl_account']['gem'], array('action' => 'user_select', 'id' => $value['tbl_account']['a2x_id'], 'search_value' => $search_info['nickname']));?>
                        </td>
                        <td class="user_link">
                            <?php echo $this->Html->link(blockStatus($value['tbl_account']['block']), array('action' => 'user_select', 'id' => $value['tbl_account']['a2x_id'], 'search_value' => $search_info['nickname']));?>
                        </td>
                        <td class="user_link">
                            <?php echo $this->Html->link($value['tbl_account']['last_login_date'], array('action' => 'user_select', 'id' => $value['tbl_account']['a2x_id'], 'search_value' => $search_info['nickname']));?>
                        </td>
                    </tr>
                <?php }?>
            <?php }?>

        </table>
        <?php if(!empty($err_msg)) {?>
            <p class="info_empty_text tales_of_deonia_err"><?php echo __($err_msg)?></p>
        <?php }?>
    </div>
</div>


